﻿Imports Control_Vuelos_ADO
Imports Control_Vuelos_BE

Public Class ManifiestoBL
    Dim _ManifiestoADO As New ManifiestoADO

    Public Function ListarManifiesto(ByVal p_CodViaje As String) As DataTable
        Return _ManifiestoADO.ListarManifiesto(p_CodViaje)
    End Function

    Public Function pr_AgregarPasajeroManifiesto(ByVal p_C_Manifiesto As C_ManifiestoBE, ByVal p_D_Manifiesto As D_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_AgregarPasajeroManifiesto(p_C_Manifiesto, p_D_Manifiesto)
    End Function

    Public Function pr_UpdateDetalleManifiestoResponsable(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_FlgResponsable As Byte) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoResponsable(p_CodViaje, p_CodReserva, p_FlgResponsable)
    End Function

    Public Function pr_UpdateDetalleManifiestoLock(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_FlgLock As Int32) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoLock(p_CodViaje, p_CodReserva, p_FlgLock)
    End Function

    Public Function pr_RemoverPasajeroManifiesto(ByVal p_D_Manifiesto As D_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_RemoverPasajeroManifiesto(p_D_Manifiesto)
    End Function

    Public Function pb_getDetalleManifiesto(ByVal vcodmanifiesto As String) As DataTable
        Return _ManifiestoADO.ListarDetalleManifiesto(vcodmanifiesto)
    End Function

    Public Function pb_getManifiesto() As DataTable
        Return _ManifiestoADO.ListarManifiesto()
    End Function

    Public Function ListarManifiestoBuscar() As DataTable
        Return _ManifiestoADO.ListarManifiestoBuscar()
    End Function

    Public Function pr_RecuperarCabecera(ByVal p_CodViaje As String) As C_ManifiestoBE
        Return _ManifiestoADO.pr_RecuperarCabecera(p_CodViaje)
    End Function

    Public Function pr_RecuperarDetalle(ByVal p_CodViaje As String, ByVal p_CodReserva As Integer) As D_ManifiestoBE
        Return _ManifiestoADO.pr_RecuperarDetalle(p_CodViaje, p_CodReserva)
    End Function

    Public Function pr_ActualizarCabecera(ByVal p_C_Manifiesto As C_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_ActualizarCabecera(p_C_Manifiesto)
    End Function

    Public Function pr_RecuperarListaManifiestoImpresion(ByVal p_CodViaje As String) As DataTable
        Return _ManifiestoADO.pr_RecuperarListaManifiestoImpresion(p_CodViaje)
    End Function

    Public Function pr_UpdateDetalleManifiestoViaje(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_CodViajeChange As String) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoViaje(p_CodViaje, p_CodReserva, p_CodViajeChange)
    End Function
    Public Function pr_ActualizarEstado(ByVal p_CodViaje As String, ByVal p_EstadoManifiesto As String) As Boolean
        Return _ManifiestoADO.pr_ActualizarEstado(p_CodViaje, p_EstadoManifiesto)
    End Function

    Public Function pr_ActualizarNroValija(ByVal p_CodViaje As String, ByVal p_NroValija As String) As Boolean
        Return _ManifiestoADO.pr_ActualizarNroValija(p_CodViaje, p_NroValija)
    End Function
End Class